home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Risc World 5
/
Risc World 5.iso
/
SOFTWARE
/
Issue5
/
PD
/
DIRSYNC
/
LegalStuff
/
ccres
/
c
/
SaveAs
< prev
Wrap
Text File
|
2004-03-20
|
1KB
|
49 lines
/* _SaveAs.c
$Id: SaveAs.c,v 1.2 2004/03/20 22:12:19 joty Exp $
Copyright (c) 2003-2004 Dave Appleby / John Tytgat
This file is part of CCres.
CCres is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
CCres is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with CCres; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "ccres.h"
#include <string.h>
#include <OSLib/saveas.h>
void action_save_to_file(PDATA data)
{
bits fSaved;
fSaved = (convert(data, data->poll.sa.file_name)) ? saveas_SAVE_SUCCESSFUL : 0;
saveas_file_save_completed(fSaved, data->idSaveAs, data->poll.sa.file_name);
if (fSaved == saveas_SAVE_SUCCESSFUL) {
toolbox_hide_object(0, data->idSaveAs);
}
}
void action_save_completed(PDATA data)
{
if (data->poll.sa.flags & saveas_SAVE_SUCCESSFUL) {
my_osfile_delete(data->poll.sa.file_name);
}
}